package nzk.hssftemp;

/**
 * Cell's formula builder
 *
 * @author N. Zulkarnaen (n.zulkarnaen@gmail.com)
 *         Date: 7/2/13
 *         Time: 12:01 PM
 * @version $Revision: 5 $
 */
public class Formula {

    /**
     * SUM vertical cells.
     *
     * @param cellRef cell reference alphabet.
     * @param hi      top most row number.
     * @param lo      lowest row number.
     * @return formula
     */
    public static String sumUp(String cellRef, int hi, int lo) {
        return "SUM(" + cellRef + hi + ":" + cellRef + lo + ")";
    }
}
